'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
  async index() {
    const { ctx, app } = this;

    const list = await app.mysql.query('select * from oneClassify');
    ctx.body = {
        code: 1,
        data: list,
    }
  }
}

module.exports = HomeController;
